﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class welcome : Form
    {
        public System.Windows.Forms.TextBox textBox1;

        public welcome()
        {
        
            InitializeComponent();

            label1.BackColor = System.Drawing.Color.Transparent;
            label2.BackColor = System.Drawing.Color.Transparent;
            invalid.BackColor = System.Drawing.Color.Transparent;
            showpassword.BackColor = System.Drawing.Color.Transparent;
            siginin.BackColor = System.Drawing.Color.Transparent;

        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {
            //check if username and password is in database
         /*   if (username.Text == "admin" && password.Text == "password")
            { */
                this.Hide();
            //admin muna dito pero dapat sa db kukunin kung anong username to
             //  Organization pasok = new Organization(this,"admin");
             // College pasok = new College(this,"admin"); 
                Department pasok = new Department(this,"admin");
                //Admin pasok = new Admin(this,"admin");
                pasok.ShowDialog();
                
                
       /*     }
            else 
            {
                invalid.Visible = true;
            }*/
        }

        private void showpassword_CheckedChanged(object sender, EventArgs e)
        {
            //checks if show password is checked
            if (showpassword.Checked)
            {
                password.UseSystemPasswordChar = false;
            }
            else
            {
                password.UseSystemPasswordChar = true;
            }
        }

        private void register_Click(object sender, EventArgs e)
        {
            this.Hide();
            Registration pasok = new Registration(this);
            pasok.Show();
        }

       
        
       
    }
}
